﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Web.MdUser.Request;
/// <summary>
/// 忘记用户密码请求实体
/// </summary>
public class RequestForgetMdUserPwdWebModel : RequestBaseModel
{
    /// <summary>
    /// 邮箱
    /// </summary>
    [RegularExpression(@"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$", ErrorMessage = "用户邮箱格式不正确")]
    public string Email { get; set; } = string.Empty;

    /// <summary>
    /// 用户密码
    /// </summary>
    [Required(ErrorMessage = "用户密码不能为空")]
    public string UserPwd { get; set; } = string.Empty;

    /// <summary>
    /// 验证码标识
    /// </summary>
    [Required(ErrorMessage = "验证码标识不能为空")]
    public string? CodeUuid { get; set; }

    /// <summary>
    /// 验证码
    /// </summary>
    [Required(ErrorMessage = "验证码不能为空")]
    [StringLength(6, ErrorMessage = "验证码长度为6")]
    public string? Code { get; set; }
}

